// VPErrorHandler.h

#pragma once

#include <string>
#include <fstream>

class VPErrorHandler
{
public:
    static void Initialize();
    static void WriteLog(const std::wstring& strFunctionName, const std::wstring& strErrorMessage);

protected:
    static VPErrorHandler* GetInstance();
    static void GetLogPath();
    static void GetLocalTime(std::wstring& strLocalTime);
    static void CreateLogFile();

private:
    explicit VPErrorHandler();
    ~VPErrorHandler();

private:
    static VPErrorHandler* m_spErrorHandler;
    static std::wofstream m_wofsLogFile;
    static std::wstring m_strLogPath;
};
